package com.hqyj.yanguangzhi.service.impl;

import com.hqyj.MyApp;
import com.hqyj.common.pojo.TestPaper;
import com.hqyj.common.util.CommonResult;
import com.hqyj.yanguangzhi.service.AMService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit4.SpringRunner;
import static org.junit.Assert.*;
import org.springframework.boot.test.context.SpringBootTest;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MyApp.class)
public class AMServiceImplTest {

    @Autowired
    AMService service;

    @Test
    public void test01(){
        TestPaper t = new TestPaper();
        t.setCurrentPage(2);
        t.setPageSize(2);
        CommonResult c =service.queryTestPaperByUserId(t,17);
    }

}